//
//  LDSDropDownTableCell.m
//  TestCategory
//
//  Created by kai_leedarson on 2017/11/1.
//Copyright © 2017年 maple_leedarson. All rights reserved.
//

#import "LDSDropDownTableCell.h"
#import "LDSDropDownModel.h"
@implementation LDSDropDownTableCell

- (void)viewSetup {
    self.backgroundColor = [UIColor clearColor];
}

- (void)frameSetup {
    
}

- (void)setModel:(LDSDropDownModel *)model
{
    [super setModel:model];
    if (model) {
        //将model 的数值 传递给 cell
        self.textLabel.text = model.text;
        self.imageView.image = [UIImage imageNamed:model.imageName];
    }
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.textLabel.center = CGPointMake(90, self.bounds.size.height/2);
}

+ (CGFloat)height {
    return 55.0f;
}
@end
